package com.lt.schoolchat.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 帖子
 *
 * @TableName post
 */
@TableName(value = "post")
@Data
@ApiModel("帖子实体")
public class Post implements Serializable {
    @ApiModelProperty("帖子id")
    @TableId(type = IdType.AUTO)
    private Long id;
    @ApiModelProperty("年龄")
    private Integer age;
    @ApiModelProperty("性别 0-男 1-女")
    private Integer gender;
    @ApiModelProperty("学历")
    private String education;
    @ApiModelProperty("地点")
    private String place;
    @ApiModelProperty("专业")
    private String job;
    @ApiModelProperty("联系方式")
    private String contact;
    @ApiModelProperty("生活状态")
    private String loveExp;
    @ApiModelProperty("内容-个人介绍")
    private String content;
    @ApiModelProperty("照片地址")
    private String photo;
    @ApiModelProperty("状态 0-待审核 1-通过 2-拒绝")
    private Integer reviewStatus;
    @ApiModelProperty("审核信息")
    private String reviewMessage;
    @ApiModelProperty("浏览数")
    private Integer viewNum;
    @ApiModelProperty("点赞数")
    private Integer thumbNum;
    @ApiModelProperty("创建用户id")
    private Long userId;
    @ApiModelProperty("创建时间")
    private Date createTime;
    @ApiModelProperty("更新时间")
    private Date updateTime;
    @ApiModelProperty("是否删除")
    @TableLogic
    private Integer isDelete;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
